//
//  BaseCell.m
//  DXC
//
//  Created by TOPTEAM on 2017/5/8.
//  Copyright © 2017年 TOPTEAM. All rights reserved.
//

#import "BaseCell.h"
#import "Common.h"
@interface BaseCell ()

@property (nonatomic,strong) UILabel* lab_type;



@end
@implementation BaseCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor whiteColor];
        [self initView];
    }
    return self;
}

- (void)initView{
    
    
    self.backgroundColor=RGB(241, 254, 239);
    
    
    _lab_type= [UILabel new];
//    _lab_type.textColor = kOrderBlack1;
    _lab_type.font = [UIFont boldSystemFontOfSize:18];
    _lab_type.numberOfLines=1;
    _lab_type.text = @"加载中...";
    _lab_type.textAlignment=NSTextAlignmentCenter;
    _lab_type.backgroundColor = [UIColor clearColor];
    [self addSubview:_lab_type];
    [_lab_type mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.mas_top).offset(0);
        make.left.equalTo(self.mas_left).offset(0);
        make.width.mas_equalTo(@(ScreenWidth));
        make.bottom.equalTo(self.mas_bottom);
        
        
    }];

}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+(CGFloat)computeHeight:(id)info{
    return 50;
}
-(void)relayOutUIWithModel:(id)model{
    _lab_type.text = model;
}
@end
